]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
util: Use fade_margins in ensureActorVisibleInScrollView function
authorAndrew Zaech <azaech021@gmail.com>
Sat, 10 Apr 2021 13:02:31 +0000 (13:02 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 10 Apr 2021 13:20:43 +0000 (15:20 +0200)
Commit f60a469a34 removed vfade_offset in favor of fade_margins.
Util.ensureActorVisibleInScrollView function needs to be adjusted
accordingly.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4080

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1802>

js/misc/util.js

index 572cee7bf53f3f5c4d807674a43daa6675149ccc..8139d3f47cfcce2200f72731d5768210dd96ff96 100644 (file)
@@ -370,7 +370,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
     let offset = 0;
     let vfade = scrollView.get_effect("fade");
     if (vfade)
-        offset = vfade.vfade_offset;
+        offset = vfade.fade_margins.top;
 
     let box = actor.get_allocation_box();
     let y1 = box.y1, y2 = box.y2;